﻿using BlazorWebassemblyApp.DataModel;

namespace BlazorWebassemblyApp.Pages;

public partial class Index
{
    private Student student { get; set; } = new Student();

    protected override Task OnInitializedAsync()
    {
        student = new Student()
        {
            Name = "胡志军",
            //JoinDateTime = DateTime.MinValue.AddYears(4)
            //JoinDateTime = null
            JoinDateTime = Convert.ToDateTime("0004-01-01")
        };
        return base.OnInitializedAsync();
    }
}